Linux里讓應用后台執行和查看應用日志 直接用java -jar -Xms256M -Xmx256M xxx.jar,當退出或關閉shell時,程序就會停止掉。以下方法可讓jar運行后一直在后台運行。 方法一: 在末尾加入 & ...